package com.snowcattle.game.service.rpc.serialize;

/**
 * rpc对象序列化
 */
public interface IRpcSerialize {

    <T> byte[] serialize(T obj);

    <T> T deserialize(byte[] data, Class<T> cls);
}
